package top.whysu.rongcloud.dto.rongcloud.groups;

import org.hibernate.validator.constraints.NotBlank;
import top.whysu.rongcloud.entity.validate.rongcloud.GroupsBulletinValid;
import top.whysu.rongcloud.entity.validate.rongcloud.GroupsNameValid;
import top.whysu.rongcloud.entity.validate.rongcloud.GroupsPortraitValid;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author whysu
 * @version 1.00.00
 * @description 重命名群组
 * @copyright
 * @company
 * @date 2021-03-16 21:07
 */
public class GroupsModifyDTO extends GroupsDTO{
    /**
     * 群名称
     */
    @NotBlank(message = "群名称不能为空！", groups = GroupsNameValid.class)
    private String groupName;

    /**
     * 群头像（完整路路径）
     */
    @NotBlank(message = "群头像不能为空！", groups = GroupsPortraitValid.class)
    private String portraitUri;

    /**
     * 群公告
     */
    @NotBlank(message = "群公告不能为空！", groups = GroupsBulletinValid.class)
    private String bulletin;

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getPortraitUri() {
        return portraitUri;
    }

    public void setPortraitUri(String portraitUri) {
        this.portraitUri = portraitUri;
    }

    public String getBulletin() {
        return bulletin;
    }

    public void setBulletin(String bulletin) {
        this.bulletin = bulletin;
    }
}